package com.db.stexchem.message;

public class LoginRequest extends Data {
  
  private String loginName;
  private String password;
  
  public LoginRequest() {
  }

  public LoginRequest(String loginName, String password) {
    this.loginName = loginName;
    this.password = password;
  }

  public String getLoginName() {
    return loginName;
  }

  public void setLoginName(String loginName) {
    this.loginName = loginName;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    LoginRequest other = (LoginRequest) obj;
    if (loginName == null) {
      if (other.loginName != null)
        return false;
    } else if (!loginName.equals(other.loginName))
      return false;
    if (password == null) {
      if (other.password != null)
        return false;
    } else if (!password.equals(other.password))
      return false;
    return true;
  }

  @Override
  public String toString() {
    return "LoginRequest [loginName=" + loginName + ", password=" + password
        + "]";
  }
  
}
